package com.qf.generator.Controller;

import com.qf.generator.Utils.R;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Log4j2
@RestController
public class TestYmlController {
    @Value("${aliyun.accessKey}")
    public String accessKey;
    @Value("${aliyun.accessSecret}")
    public String secretKey;
    @RequestMapping("/testYml")
    public R testYml(){
        log.info("info测试yml secretKey={},accessKey={}",secretKey,accessKey);
        log.debug("debug测试yml secretKey={},accessKey={}",secretKey,accessKey);
        log.error("error测试yml secretKey={},accessKey={}",secretKey,accessKey);
        log.warn("warn测试yml secretKey={},accessKey={}",secretKey,accessKey);
        return R.ok();
    }
}
